<div id='menuInterno'>{$menu}</div>

<h1>{$msg_project} #{$prj_id} - {$prj_title}</h1>

<h2>{$msg_list_question}</h2>
	
{if $num_question == 0}
	<a class="link-big" href="index.php?m=Bproject&c=frmQuestion&prj_id={$prj_id}&p=1">{$msg_add_first_question}</a>
{/if}

{if $somente_filhos != ""}
	<a class="link-big" href="index.php?m=Bproject&c=listQuestion&prj_id={$prj_id}">{$msg_list_all_questions}</a>
{/if}

<div id="content">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class='gray_grid'>
    <tr>
      <td>
      {$somente_filhos}
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <thead>
        <tr>
          <th width="4%">ID</th>
          <th >{$msg_question}</th>
          <th width="8%">{$msg_answers}</th>
          <th >{$msg_type_answer}</th>
          <th >{$msg_data}</th>          
          <th >{$msg_user_last_modify}</th>
          <th width="120px">&nbsp;</th>        
        </tr>
        </thead>
        <tbody>
        	{$questions}
        </tbody>
      </table>
      </td>
    </tr>
  </table>
  
  {if $num_question != 0 && $prjusr_role == 'Owner'}
	  <em id='removerTodas' onClick='confirmaExclusao("{$msg_confirm_remove_question}?")'>{$msg_remove_all_questions}</em>
	  <form method="post" id='frmExclusao' action="{$SISTEMA_URL}index.php?m=Bproject&c=removeallquestions">
	  	<input type='hidden' value='{$prj_id}' name='prj_id'/>
	  </form>
  {/if}
</div>